package com.demo.page9101.feign.banner;

import com.demo.common.entity.Banner;

import com.demo.page9101.feign.impl.banner.BannerFeignImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * 头部、中间轮播图
 * 作者：孙佳佳
 * 改bug：张佑威
 */
@FeignClient(name = "houpu-service-bean",fallback = BannerFeignImpl.class)
public interface BannerFeign {

    @GetMapping("/Banner/getAllOne")
    public List<Banner> getAllOne();

    @GetMapping("/Banner/getAllTwo")
    public List<Banner> getAllTwo();

    @GetMapping("/Banner/news")
    public List<Banner> newsAll();
}
